package com.koron.device.service;


import com.koron.bean.workflow.RedirectQuery;
import com.koron.device.bean.EquipmentChangeQuery;
import com.koron.device.bean.EquipmentChangeVO;
import org.koron.ebs.mybatis.SessionFactory;

import java.util.List;

public interface EquipmentChangeService {

    /**
     * 更新
     * @param factory
     * @param vo
     * @return
     */
    EquipmentChangeVO saveOrUpdate(SessionFactory factory, EquipmentChangeVO vo);

    /**
     * 查询列表
     * @param factory
     * @param query
     * @return
     */
    List<EquipmentChangeVO> list(SessionFactory factory, EquipmentChangeQuery query);

    /**
     * 根据id查询详情
     * @param factory
     * @param id
     * @return
     */
    EquipmentChangeVO getById(SessionFactory factory, String id);

    /**
     * 删除
     * @param factory
     * @param id
     * @return
     */
    Boolean delete(SessionFactory factory,String id);

    /**
     * 工作流更新
     * @param factory
     * @param redirectQuery
     */
    Boolean workflowUpdate(SessionFactory factory, RedirectQuery redirectQuery);

    Boolean updateEnd(SessionFactory factory, RedirectQuery redirectQuery);
}
